/*
 * @Descripttion: 出手鸭小程序
 * @version:1.0.1 
 * @Author: HHL
 * @Date: 2023-02-09 10:36:59
 * @LastEditTime: 2025-09-29 09:45:42
 * @LastEditors: sueRimn
 */

import {
  BASEHOST,
} from '../../config'
import Request from '../http'



// 商品分类
export const fetchCategoryList = () => Request.get(`${BASEHOST}/api/category/list`, {}, { cache_maxage: 360 })

// 全部商品分类
export const fetchAllCategoryList = () => Request.get(`${BASEHOST}/api/category/allList`, {}, { cache_maxage: 360 })


// 品牌列表接口
export const fetchBrandList = data => Request.get(`${BASEHOST}/api/brand/list`, data, { cache_maxage: 360 })


// 热门品牌接口
export const fetchHotBrand = data => Request.get(`${BASEHOST}/api/brand/hotList`, data, { cache_maxage: 360 })

// 品牌分组
export const fetchGroupBrand = categoryId => Request.get(`${BASEHOST}/api/brand/group`, {categoryId}, { cache_maxage: 360 })

// 商品系列
export const fetchProductSeries = data => Request.get(`${BASEHOST}/api/series/list`, data, { cache_maxage: 360 })


// 热门商品列表
export const fetchHotList = data => Request.get(`${BASEHOST}/api/product/hotList`, data, { cache_maxage: 360 })

// 商品列表
export const fetchProductList = data => Request.get(`${BASEHOST}/api/product/list`, data, { cache_maxage: 360 })

//商品系列
export const fetchSeriesList = data => Request.get(`${BASEHOST}/api/series/list`, data, { cache_maxage: 360 })

// 商品搜索
export const fetchProductSearch = data => Request.get(`${BASEHOST}/api/product/search`, data)


// 商品估价信息
export const fetchProductAttrValue = data => Request.get(`${BASEHOST}/api/product/attrValue`, data, { cache_maxage: 360 })

// 商品估价信息
export const fetchEvaluateProduct = data => Request.get(`${BASEHOST}/api/evaluate/product`, data, { cache_maxage: 0 })

// 商品估价信息
export const fetchEvaluateItem = data => Request.get(`${BASEHOST}/api/evaluate/item`, data, { cache_maxage: 0 })

// 获取估价
export const fetchEvaluateResult = data => Request.post(`${BASEHOST}/api/evaluate/result`, data)


// 获取用户最近一次估价信息
export const fetchUserEvaluateResult = () => Request.get(`${BASEHOST}/api/evaluate/lastEvaluate`, {})
